# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-telegram-text
pkgver=0.1.2
pkgrel=0
pkgdesc="Python markup module for Telegram messenger"
url="https://telegram-text.alinsky.tech/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-poetry-core py3-installer"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/SKY-ALIN/telegram-text/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/telegram-text-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/telegram_text*.whl
}

sha512sums="
702a2c026e018575eeec347f56359f5c5433b4d1e33fa4a6affbe3ae6609296dda3dd2a7f534fc802be16b93f24cd40ab90dd534b5292823a87500df28e257df  py3-telegram-text-0.1.2.tar.gz
"
